<template>
	<view class="help-content">
		<yk-header :title="title" @headBtn="headBtn()" @closePage="closePage()"></yk-header>
		<!-- <video src="../../static/img/zhanye/cat.mp4" @play='' poster="../../static/img/zhanye/cat.mp4" controls></video>
		<video src="../../static/img/zhanye/cat1.mp4" poster="../../static/img/zhanye/cat1.mp4" controls></video> -->
		<image src="../../static/img/zhanye/help1.png" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '使用帮助'
			};
		},   
		onLoad() {

		},
		onShow() {
			document.title = '使用帮助';
		},
		methods: {
			play(){
				
			},
			//顶部功能键
			headBtn(e) {
				let that = this;
				uni.showActionSheet({
					itemList: ['刷新', '清除缓存'],
					success: function(res) {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						if (res.tapIndex == 0) {
							//刷新
							uni.showLoading({
								title: '刷新中'
							});
							setTimeout(function() {
								uni.hideLoading();
							}, 1500);

						} else {
							//清楚缓存
							// callNative('onClearH5Cache')
							uni.showToast({
								title: '清除缓存成功'
							});
						}
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//关闭当前页面
			closePage() {
				callNative('navigateBack')
			}
		}
	};
</script>

<style lang="scss">
	video{
		width: 750px;
		height: 300px;
	}
	.help-content {
		width: 100%;
		height: 100%;
		min-width: 750px;

		image {
			display: block;
			width: 100%;
			height: 100%;
		}
	}
</style>
